const express = require ('express')
const http = require('http')


const app = new express()
console.log(app)
app.all("*", (req, res, next) => {
    console.log(req)
    if (this.checkHeader(req.headers, "host")) {
      return next();
    }

    res.send("Invalid Host header");
  });

const server = http.createServer({}, app)
server.listen(3000)

